<app:aside-block class='aside-block-highlighted' heading='Invader Core' visibility-model='Room.asidePanels.view'>
<div ng:controller='Top.Game.Room.InvaderCoreProperties as InvaderCoreProperties'>
<div class='object-properties-id'>
ID: {{Room.selectedObject._id}}
</div>
<div>
<label>Owner:</label>
<a>
<img app:badge-src='Room.users[Room.selectedObject.user].badge'>
</a>
{{Room.users[Room.selectedObject.user].username}}
</div>
<div>
<label>Position:</label>
{{Room.selectedObject.x}}, {{Room.selectedObject.y}}
</div>
<div>
<label>Level:</label>
{{Room.selectedObject.level | round}}
</div>
<div>
<label>Hits:</label>
{{Room.selectedObject.hits | round}} / {{Room.selectedObject.hitsMax | round}}
</div>
<div ng:if='Room.gameTime &amp;&amp; Room.selectedObject.deployTime &amp;&amp; Room.selectedObject.deployTime &gt;= Room.gameTime'>
<label>Deploying in:</label>
{{Room.selectedObject.deployTime - Room.gameTime}}
</div>
<div class='body' ng:if='Room.selectedObject.spawning &amp;&amp; Room.gameTime'>
<label class='body-header'>
Spawning
</label>
<div>
<label>Time remaining:</label>
{{Room.selectedObject.spawning.spawnTime - Room.gameTime}} / {{Room.selectedObject.spawning.needTime}}
</div>
<div>
<label>Directions:</label>
<span ng-repeat='i in (InvaderCoreProperties.getDirections() || [1])'>
{{ {1: '⬆', 2: '↗', 3: '➡', 4: '↘', 5: '⬇', 6: '↙', 7: '⬅', 8: '↖'}[i] }}
</span>
</div>
<div>
<label>Name:</label>
{{Room.selectedObject.spawning.name}}
</div>
<label class='body-header'>
Body
</label>
<div class='bodypart' ng:class="'type-'+i.type+' '+(i.boost ? 'boost':'')" ng:repeat='i in InvaderCoreProperties.getSpawningCreep().body | orderByNameNumerically track by $index' tooltip-append-to-body='true' tooltip-html-unsafe="type: {{i.type}}&lt;br&gt;{{i.boost ? 'boost: '+Room.resourceTypeNames[i.boost] : ''}}" tooltip-placement='bottom'></div>
</div>
<ng-include src="'room-object-effects'"></ng-include>
<div ng-if='Room.selectedObject.level == 0'>
<div class='desc'>
<p>This structure is spawned by its parent nearby.</p>
</div>
<div class='learn-more'>
<a app-nw-external-link href='http://docs.screeps.com/invaders.html' target='_blank'>Learn more</a>
</div>
</div>
<div ng-if='Room.selectedObject.level &gt; 0'>
<div class='desc'>
<p>While this structure is alive, it will send invader creeps to all rooms in this sector. It also seems there are some valuable resources inside.</p>
</div>
<div class='learn-more'>
<a app-nw-external-link href='http://docs.screeps.com/invaders.html' target='_blank'>Learn more</a>
</div>
</div>
</div>
</app:aside-block>
